package com.drug.mingkang.model.vo;

import cn.hutool.http.HtmlUtil;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.StringWriter;

/**
 * 描述：原材料采购明细VO
 * 所属项目：mingkang
 *
 * @author 依旧
 * @create 2020-08-15 09:21
 * @employ IntelliJ IDEA
 * @since 1.0.0
 */
@Data
public class PurchasedetailsVo {
    @ApiParam(name = "page", value = "页", required = true)
    private int page;
    @ApiParam(name = "limit", value = "行", required = true)
    private int limit;
    public int getPage() {
        return (page - 1) * limit;
    }
    /**
     * 采购订单Id
     */
    private String purchaseId;
    /**
     * 采购明细id
     */
    private String detailsId;
    /**
     * 数量
     */
    private Integer count;
    /**
     * 总价格
     */
    private Double money;
    /**
     * 采购备注
     */
    private String remark;
    /**
     * 原材料名
     */
    private String materialName;
    /**
     * 原材料金额
     *
     * @return
     */
    private Double materialMoney;



    public Integer getCount() {
        if (count == null) {
            return 0;
        } else {
            return count;
        }
    }

    public Double getMoney() {
        return money;
    }
}